Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

handle responses.json when it is an array #51

Merged
merged 1 commit into from
Feb 21, 2024
Merged

Conversation

keriati
Copy link
Contributor

@keriati keriati commented Feb 13, 2024

When I connect the BMO Plugin to together.ai openAI API endpoint, the models failed to load.
After investigation I noticed that the response.json is an Array that contains all models directly.
There is no data attribute needed.

I am not sure how other APIs implement this, however this fix made it work for me with together.ai...

@keriati
Copy link
Contributor Author

keriati commented Feb 16, 2024

@longy2k please take a look here.

@longy2k
Copy link
Owner

longy2k commented Feb 16, 2024

Yes, thank you!!

I will be merging this to the next release :)

@longy2k longy2k merged commit cf06084 into longy2k:main Feb 21, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants